<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://displaytag.sf.net" prefix="display" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript" src="./jquery/jquery.js"></script>
<script type="text/javascript" src="./jquery/jquery-ui.js"></script>
</head>
<body>
<form action="search1.action">
Business Name: <input type="text" name = "business.businessName" id="businessname" > SIC code: <input type="text" name="business.codeSIC" id="codesic">
<br>
<input type="submit" value="Search" name="search"> 
</form><input type="button" value = "None" name="none" onclick="none()"> <input type="button" name="clear" value="Clear" onclick="clear()">
<br>
<display:table export="true" id="business" name="businesses" requestURI="" class="ActionBusiness" pagesize="2" cellpadding="1" style="1">
<display:column>
<input type="radio" name = "selected" id = "select" value="${addresses.addressId}" class="select" onclick="getSelectedRow()"/>
</display:column>
<display:column property="businessName" sortable="true" title="Business Name"/>
<display:column property="codeSIC" sortable="true" title="SIC Code"/>
</display:table>
<br>

<input type="button" value = "Select" name="select" onclick="select()"><input type="button" value = "Close" name="close" onclick="close">



<script type="text/javascript">
function clear(){
	
	$("#businessname").val('');
	$("#codesic").val('');
	
}

function getSelectedRow(){
	if($("input[type = 'radio'].select").is(':checked')){
		return($("input[type = 'radio'].select:checked").val());
	}
}

function none(){
	$("input:radio").attr("checked",false);
}
</script>
</body>

</html>